import {
	ApiUtils,
	_axios
} from '@/api/apiUtil.js';
import constant from '@/util/constant.js';

const api = {
	list: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.getLoadingAjax(constant.serverUrl + "/tgb/activity/list", params, successCallback, failCallback,
			exceptionCallback);
	},
	toSave: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.getLoadingAjax(constant.serverUrl + "/tgb/activity/toSave", params, successCallback, failCallback,
			exceptionCallback);
	},
	toUpdate: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.getLoadingAjax(constant.serverUrl + "/tgb/orderInfo/toUpdate", params, successCallback, failCallback,
			exceptionCallback);
	},
	remove: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.deleteLoadingAjax(constant.serverUrl + "/tgb/activity/remove", params, successCallback, failCallback,
			exceptionCallback);
	},
    updateStatus: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.putLoadingAjax(constant.serverUrl + "/tgb/activity/updateStatus", params, successCallback, failCallback,
			exceptionCallback);
	},
	getStoreByBusinessId: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.getLoadingAjax(constant.serverUrl + "/tgb/activity/getStoreByBusinessId", params, successCallback, failCallback,
			exceptionCallback);
	},
	getProductListByStoreId: (params, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.getLoadingAjax(constant.serverUrl + "/tgb/activity/getProductListByStoreId", params, successCallback, failCallback,
			exceptionCallback);
	},

}
export default api;